import { Component, OnInit } from '@angular/core';
import { AppService } from '../../services/app.service'

@Component({
    selector: 'header-control',
    templateUrl: './header-control.component.html',
    styleUrls: ['./footer.component.less']
})
export class HeaderControlComponent implements OnInit {

    userName:string;
    menuObject:Array<object>;

    constructor(
        private appService:AppService
    ) {
    }

    ngOnInit() {
        this.userName = this.appService.getUserName() ;
        this.menuObject = this.appService.getMenuObject() ;
    }
}